package edu.gatech.ealf.secretservantplaf;

import java.awt.Graphics;
import java.io.File;

import javax.swing.JComponent;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileView;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.FileChooserUI;

public class SSFileChooserUI extends FileChooserUI {
	private static final String UI_CLASS_ID = "FileChooserUI";
	
	public SSFileChooserUI() {
        ;
    }

    public static ComponentUI createUI(JComponent c) {
        return new SSFileChooserUI();
    }

    @Override
    public void installUI(JComponent c) {
        
        SecretServantLookAndFeel.getInstance().registerComponentInstallation(UI_CLASS_ID, c);
    }


    @Override
    public void uninstallUI(JComponent c) {
    	
    	SecretServantLookAndFeel.getInstance().registerComponentUninstallation(UI_CLASS_ID, c);
    }

    @Override
    public void paint(Graphics g, JComponent c) {
    }
    
    @Override
    public void update(Graphics g, JComponent c) {
    }

	@Override
	public void ensureFileIsVisible(JFileChooser fc, File f) {
	}

	@Override
	public FileFilter getAcceptAllFileFilter(JFileChooser fc) {
		return null;
	}

	@Override
	public String getApproveButtonText(JFileChooser fc) {
		return null;
	}

	@Override
	public String getDialogTitle(JFileChooser fc) {
		return null;
	}

	@Override
	public FileView getFileView(JFileChooser fc) {
		return null;
	}

	@Override
	public void rescanCurrentDirectory(JFileChooser fc) {
	}
	
}
